<template>
	<view class="icon iconfont icon-test2 age" :class="[sex==0?'icon-nan':'icon-nv']">{{age}}</view>
</template>

<script>
	export default {
		props:{
			sex:Number,
			age:Number
		}
	}
</script>

<style scoped>
	.age{
		background-color: #007AFF;
		color: #FFFFFF;
		font-size: 23upx;
		padding: 5upx 10upx;
		margin-left: 1upx;
		border-radius: 20upx;
		line-height: 22upx;
		margin-top: 8upx;
		
	}
	.icon-nv{
		background:pink;
	}
</style>
